// let type = Object.prototype.toString.call(undefined)
let type = Object.prototype.toString(undefined)

console.log(type.slice(8, -1));

